//后台班级管理路由
'use strict';
//添加、列表、修改、删除、批量删除等url地址
const express = require('express');
const path = require('path');
const moment = require('moment');
//使用express的router方法
const classRouter = express.Router();  //定义班级路由 
const classCtr = require('./../../controllers/classController.js')
classRouter.get('/class_add',classCtr.classAdd);
classRouter.get('/class_list',classCtr.classList);
classRouter.post('/class_add',classCtr.classAddData);
classRouter.get('/class_delete/:id',classCtr.classDelete);
classRouter.post('/class_deleteAll',classCtr.class_deleteAll)
classRouter.get('/class_edit/:id',classCtr.classEdit);	// 显示添加学生页面

classRouter.post('/class_edit/:id',classCtr.classEditData);	// 添加学生操作
module.exports = classRouter;